﻿using System;
using System.Linq;
using System.Text;
using DevExpress.Xpo;
using DevExpress.ExpressApp;
using System.ComponentModel;
using DevExpress.ExpressApp.DC;
using DevExpress.Data.Filtering;
using DevExpress.Persistent.Base;
using System.Collections.Generic;
using DevExpress.ExpressApp.Model;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace Tida.Module.BusinessObjects.研发中心
{
    [NavigationItem("研发中心")]
    [XafDisplayName("项目成员类型")]
    [DefaultProperty("类型名称")]
    [DefaultClassOptions]
    public class 项目成员类型 : BaseObject
    { // Inherit from a different class to provide a custom primary key, concurrency and deletion behavior, etc. (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument113146.aspx).
        public 项目成员类型(Session session)
            : base(session)
        {
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place your initialization code here (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112834.aspx).
        }

        // Fields...
        private decimal _项目预设时间;
       private string _工作内容;
       private string _类型名称;

        [Size(SizeAttribute.DefaultStringMappingFieldSize)]
        public string 类型名称
        {
            get
            {
                return _类型名称;
            }
            set
            {
                SetPropertyValue("类型名称", ref _类型名称, value);
            }
        }


        [Size(SizeAttribute.DefaultStringMappingFieldSize)]
        public string 工作内容
        {
            get
            {
                return _工作内容;
            }
            set
            {
                SetPropertyValue("工作内容", ref _工作内容, value);
            }
        }


        public decimal 项目预设时间
        {
            get
            {
                return _项目预设时间;
            }
            set
            {
                SetPropertyValue("项目预设时间", ref _项目预设时间, value);
            }
        }
    }
}